import 'package:dailoz/generated/json/base/json_field.dart';
import 'package:dailoz/generated/json/task_day_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class TaskDayEntity {
  late String title;
  late int num;

  TaskDayEntity();

  factory TaskDayEntity.fromJson(Map<String, dynamic> json) =>
      $TaskDayEntityFromJson(json);

  Map<String, dynamic> toJson() => $TaskDayEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
